import request from '@/utils/request'

// 初始化
export function initBean(data) {
    return request({
        url: '/oms/task/deal/initBean',
        method: 'post',
        data: data
    })
}
export function sendsTask(data) {
  return request({
    url: '/oms/task/disposal/sendTask/',
    method: 'post',
    data:data
  })
}
export function check(data) {
  return request({
    url: '/oms/task/disposal/check',
    method: 'post',
    data:data
  })
}
// 查询出入库订单详细
export function getTask(id) {
  return request({
    url: '/oms/task/deal/' + id,
    method: 'get'
  })
}
// 新增出入库订单
export function addTask(data) {
  return request({
    url: '/oms/task/deal',
    method: 'post',
    data: data
  })
}
// 修改出入库订单
export function updateTask(data) {
  return request({
    url: '/oms/task/deal',
    method: 'put',
    data: data
  })
}
export function registerTask(data) {
  return request({
    url: '/oms/task/deal/register',
    method: 'post',
    data: data
  })
}
export function disposalRegister(data) {
  return request({
    url: '/sacw/disposal/register',
    method: 'post',
    data: data
  })
}
// 初始化
export function listDeal(data) {
    return request({
        url: '/oms/task/deal/dealList',
        method: 'get',
        params: data
    })
}
export function getDisposalNotRegisterOverview(query) {
  return request({
    url: '/oms/task/disposal/getNotRegisterOverview',
    method: 'get',
    params: query
  })
}
// 初始化
export function listDisposalNotRegister(data) {
    return request({
        url: '/oms/task/disposal/getNotRegisterList',
        method: 'get',
        params: data
    })
}
// 初始化
export function getAuthCenterDisposalList(data) {
  return request({
    url: '/oms/task/disposal/getAuthCenterDisposalList',
    method: 'get',
    params: data
  })
}
export function initRegister(ids) {
    return request({
        url: '/oms/task/deal/initRegister/'+ids,
        method: 'get'
    })
}
export function batchRegister(data) {
  return request({
    url: '/oms/task/deal/batchRegister',
    method: 'post',
    data: data
  })
}
export function getTempStorageList(data) {
  return request({
    url: '/oms/task/disposal/getTempStorageList',
    method: 'get',
    params: data
  })
}
export function disposalTempStorage(data) {
  return request({
    url: '/oms/task/disposal/disposalTempStorage',
    method: 'post',
    data: data
  })
}

export function cancelDisposalTempStorage(data) {
  return request({
    url: '/oms/task/disposal/cancelDisposalTempStorage',
    method: 'post',
    data: data
  })
}


